🐛 Fix #599 add lazy support for potential self-referential types (plus unit tests)#907
Merged
Code-Hex merged 1 commit intoCode-Hex:mainfrom Sep 23, 2025
Merged
Conversation
0649842 to
3d7cd83
Compare
Author
|
hey @Code-Hex i saw you ran the CI checks for me. thanks! i noticed that it failed and, taking a wild guess, seemingly for a reason unrelated to the PR? any idea how this happened? |
…ypes also include unit tests
3d7cd83 to
c94ef9e
Compare
Owner
|
@btoo Did you try running tests on your local? |
|
It would be awesome to unlock this. 🙏 |
Author
|
Any chance that we can help unblocking this? 🙏🏼 |
|
Looking for this as well, seemed so close! Where is it stuck? |
Owner
|
Sorry, I forgot about this PR. I'll check this |
Code-Hex
approved these changes
Sep 23, 2025
Owner
jrehwaldt
reviewed
Jan 2, 2026
| email: v.nullish(v.string()), | ||
| id: v.nullish(v.string()), | ||
| kind: v.nullish(UserKindSchema()), | ||
| kind: v.lazy(() => v.nullish(UserKindSchema())), |
There was a problem hiding this comment.
The generated schema here seems invalid, since it results in a non-nullish field kind. Correct would have been:
kind: v.nullish(v.lazy(() => UserKindSchema())),While not explicitly mentioned in the documentation it can be seen from the example.
Can this be fixed?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#838 (review)